package com.tradeservices;

import com.fasterxml.jackson.databind.ser.BeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.meta.AnnotationDrivenFilter;

public class VersionEntityFilterProvider extends SimpleFilterProvider {
	private static final long serialVersionUID = 6186694441466983992L;

	public VersionEntityFilterProvider(int version) {
		setDefaultFilter(new AnnotationDrivenFilter(version));
	}

	@Override
	public BeanPropertyFilter findFilter(Object filterId) {
		System.out.println("VersionEntityFilterProvider.findFilter()");
		return super.findFilter(filterId);
	}
}
